package com.wjc.train.business.repository;

import com.wjc.train.business.entity.Train;
import com.wjc.train.business.mapper.TrainMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjc.train.business.req.TrainQueryReq;
import com.wjc.train.business.resp.TrainQueryResp;

/**
 * <p>
 * 车次表 仓储类
 * </p>
 *
 * @author Guessed
 * @since 2023-07-31
 */
@Repository
public class TrainRepository extends ServiceImpl<TrainMapper, Train> implements IService<Train>  {

   public IPage<TrainQueryResp> queryList(IPage<TrainQueryResp> page, TrainQueryReq trainQueryReq) {
        return baseMapper.queryList(page,trainQueryReq);
    }
}